var liczba = 100;
var str = "";

function wyswietl()
{
  str += "Funkcja wyswietl: liczba = ";
  str += liczba;
  str += ".<br />";
  liczba = 200;
}

str += "Przed wywołaniem f. wyswietl liczba = ";
str += liczba;
str += ".<br />";

wyswietl();

str += "Po wywołaniu f. wyswietl liczba = ";
str += liczba;
str += ".<br />";

var dataDiv = document.getElementById("dataDiv");
dataDiv.innerHTML = str;
